#pragma once
#include "Effect.h"
#include <vector>
#include "Sound.h"
#include "Entity.h"
#include "Unit.h"

class Unit;

using namespace std;
class Weapon : public Entity
{
protected:
vector<Effect*> onShoot;
vector<Effect*> onStop;
vector<Unit*> mesBalles;

Unit* bulletType;

public:

Weapon(int positionX,int positionY,int height,int width, Engine* e);

vector<Effect*> getonShoot(){return onShoot;}
vector<Effect*> getonStop(){return onStop;}
Unit* getbulletType(){return bulletType;}

void setonShoot(vector<Effect*> onShootin){onShoot=onShootin;}
void setonStop(vector<Effect*> onStopin){onStop=onStopin;}
void setbulletType(Unit* bulletTypein){bulletType=bulletTypein;}

virtual void shoot(int fx,int fy);
virtual void stop();
};
